export default [
    {
        path:'/404',
        component:()=>import('@/views/404/404')
    },
    {
        path:'*',
        redirect:'/404'
    },
    {
        path:'/vuex-test',
        component:()=>import('@/views/VuexTest/VuexTest')
    },
    {
        path:'/login',
        component:()=>import('@/views/Login/Login')
    },
    {
        path: '/',
        component: () => import('@/views/Layout/Layout'),
        redirect: '/home',
        meta:{
            iconfont:'sell-shouye',
            title:'后台首页',
            hasChild:false,
            roles:['super','normal']
        },
        children: [
            {
                path: 'home',
                component: () => import('@/views/Home/Home'),
                meta:{
                    title:'后台首页'
                }
            }
        ]
    },
    {
        path: '/order',
        component: () => import('@/views/Layout/Layout'),
        redirect: '/order/order-list',
        meta:{
            iconfont:'sell-dingdan',
            title:'订单管理',
            hasChild:false,
            roles:['super','normal']
        },
        children: [
            {
                path: 'order-list',
                component: () => import('@/views/OrderList/OrderList')
            }
        ]
    },
    {
        path: '/goods',
        component: () => import('@/views/Layout/Layout'),
        redirect: '/goods/goods-list',
        meta: {
            iconfont:'sell-shangpin',
            title: '商品管理',
            hasChild: true,
            roles: ['super', 'normal']
        },
        children: [
            {
                path: 'goods-list',
                component: () => import('@/views/GoodsList/GoodsList'),
                meta: {
                    title: '商品列表'
                },
            },
            {
                path: 'goods-add',
                component: () => import('@/views/GoodsAdd/GoodsAdd'),
                meta: {
                    title: '商品添加'
                },
            },
            {
                path: 'goods-category',
                component: () => import('@/views/GoodsCategory/GoodsCategory'),
                meta: {
                    title: '商品分类'
                },
            },
        ]
    },
   
   
]